package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created  on 2017/12/21.
 * @author helin
 * 活动评论
 */

public class ActCommentBean implements Parcelable {

    /**
     * ID
     */
    private Integer id;

    /**
     * 活动ID
     */
    private Integer activityId;

    /**
     * 内容
     */
    private String content;

    /**
     *评论人昵称
     */
    private String commenterNickName;

    /**
     *评论人登录账号
     */
    private String commenterUserName;

    /**
     *评论人头像地址
     */
    private String commenterAvatar;

    /**
     *评论时间
     */
    private String commentTime;

    /**
     *评论状态
     */
    private Integer commentStatus;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCommenterNickName() {
        return commenterNickName;
    }

    public void setCommenterNickName(String commenterNickName) {
        this.commenterNickName = commenterNickName;
    }

    public String getCommenterUserName() {
        return commenterUserName;
    }

    public void setCommenterUserName(String commenterUserName) {
        this.commenterUserName = commenterUserName;
    }

    public String getCommenterAvatar() {
        return commenterAvatar;
    }

    public void setCommenterAvatar(String commenterAvatar) {
        this.commenterAvatar = commenterAvatar;
    }

    public String getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(String commentTime) {
        this.commentTime = commentTime;
    }

    public Integer getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(Integer commentStatus) {
        this.commentStatus = commentStatus;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeValue(this.activityId);
        dest.writeString(this.content);
        dest.writeString(this.commenterNickName);
        dest.writeString(this.commenterUserName);
        dest.writeString(this.commenterAvatar);
        dest.writeString(this.commentTime);
        dest.writeValue(this.commentStatus);
    }

    public ActCommentBean() {
    }

    protected ActCommentBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.activityId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.content = in.readString();
        this.commenterNickName = in.readString();
        this.commenterUserName = in.readString();
        this.commenterAvatar = in.readString();
        this.commentTime = in.readString();
        this.commentStatus = (Integer) in.readValue(Integer.class.getClassLoader());
    }

    public static final Creator<ActCommentBean> CREATOR = new Creator<ActCommentBean>() {
        @Override
        public ActCommentBean createFromParcel(Parcel source) {
            return new ActCommentBean(source);
        }

        @Override
        public ActCommentBean[] newArray(int size) {
            return new ActCommentBean[size];
        }
    };
}
